import request from '../uitls/request'
// 点赞请求的api

//点赞+1并且点赞表数据+1,点赞总量+1
// POST http://localhost:5000/praise HTTP/1.1
export function addPraise(data) {
    return request.post(`/praise`,data)
}

//取消点赞-1并且点赞表数据-1,点赞总量-1
// DELETE http://localhost:5000/praise HTTP/1.1
export function deletePraise(data) {
    return request.post(`/praise/cancelPraise`,data)
}

//查看文章Id和用户Id是否在点赞表中
// PUT http://localhost:5000/praise HTTP/1.1
export function selectPraise(data) {
    return request.put(`/praise`,data)
}




